// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.characters.AttachedItems;

import zombie.inventory.InventoryItem;

public final class AttachedItem {
    protected final String location;
    protected final InventoryItem item;

    public AttachedItem(String _location, InventoryItem _item) {
        if (_location == null) {
            throw new NullPointerException("location is null");
        } else if (_location.isEmpty()) {
            throw new IllegalArgumentException("location is empty");
        } else if (_item == null) {
            throw new NullPointerException("item is null");
        } else {
            this.location = _location;
            this.item = _item;
        }
    }

    public String getLocation() {
        return this.location;
    }

    public InventoryItem getItem() {
        return this.item;
    }
}
